<?php if (!defined('THINK_PATH')) exit();?><?php if(is_array($left_menu)): $i = 0; $__LIST__ = $left_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$i;$mod = ($i % 2 )?><h3 class="f14"><span class="switchs cu on" title="<?php echo ($lang["expand_or_contract"]); ?>"></span><?php echo ($val["title"]); ?></h3>
<ul>
    <?php if(is_array($val['sub'])): $i = 0; $__LIST__ = $val['sub'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sval): ++$i;$mod = ($i % 2 )?><li id="_MP<?php echo ($sval["id"]); ?>" class="sub_menu"><a href="javascript:_MP(<?php echo ($sval["id"]); ?>,'<?php echo ($sval["url"]); ?>');" hidefocus="true" style="outline:none;"><?php echo ($sval["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul><?php endforeach; endif; else: echo "" ;endif; ?>
<script type="text/javascript">
$(".switchs").each(function(i){
	var ul = $(this).parent().next();
	$(this).click(
	function(){
		if(ul.is(':visible')){
			ul.hide();
			$(this).removeClass('on');
				}else{
			ul.show();
			$(this).addClass('on');
		}
	})
});
</script>